Justin Bieber and Selena GomezJustin Bieber took to Twitter to apologize to his fans for giving the paparazzi the finger.

Bieber gave photographers the middle finger as he and his girlfriend Selena Gomez were leaving Maggiano's after celebrating his 17th birthday at the restaurant on March 1. He admitted to losing his temper and regretted his actions.

Bieber tweeted, "had a great bday and at the end of the night we got surrounded by paps and i reacted in a way i know better. im sorry #killthemwithkindness."

He continued, "it's not always easy but i know better than to react in anger."

On a happier note, he gave thanks to his fans for making his birthday wish come true. "On a better note i need to say THANK U to my fans. we raised over 40k for @charitywater for my bday. we together #madeachange."

Bieber had urged fans to donate at least $17 to the Charity: Water foundation, which provides clean water to those in need. Bieber has already helped raise more than $44,000 (and growing), which surpassed the $17,000 campaign goal.