Miramar police are investigating an apparent accidental shooting that they say left one man dead and another detained.